<?php
class metControl extends control{
	public function index(){
		if(!isset($_SESSION['user']['uid'])){
			$this->error('您还没有登录，请登录后再操作');
		}
		$uid=$_SESSION['user']['uid'];
		$db=M('user');
		$user=$db->where("uid=$uid")->all();
		$this->assign('user',$user);
		$this->display();
	}





public function out(){
	$this->session_destroy();
	$this->success('成功退出','index/index');
}
}

?>